package com.dpp.mapper;

import com.dpp.entity.Coupon;
import com.dpp.entity.Orders;
import com.dpp.entity.TakeOrders;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CouponMapper {

    @Select("select t1.id as coupon_id , t1.name, t1.condition, t1.start_at, t1.end_at, t1.description, t1.value, t1.value_desc, t1.unit_desc, t1.custom_valid_period, t1.reason from coupon as t1 where id = #{id}")
    Coupon selectById(Integer id);


}
